var jwt = require('jsonwebtoken');

//加密
var token=jwt.sign({id:10001},"shhhhh",{algorithm:"RS256",expiresIn:60});

//验证
var decoded=jwt.verify(token,"shhhhh");
